package com.java.simple.study.jvm.classloader;

/**
 * @author zhoujunlin
 * @date 2022年05月15日 21:29
 * @desc
 */
public class ClassLoaderTest2 {

    public static void main(String[] args) {
        try {
            ClassLoader classLoader = Class.forName("java.lang.String").getClassLoader();
            System.out.println(classLoader);

            ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
            System.out.println(contextClassLoader);

            ClassLoader parent = ClassLoader.getSystemClassLoader().getParent();
            System.out.println(parent);

        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

    }

}
